package testcase;

import java.io.IOException;

import junit.framework.TestCase;
import Data.DictionaryData;

public class Dictionary_testcase extends TestCase{

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
	public void setUp() { }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
	
	public void test_AA() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("AA");
		assertEquals(result, true);
	}
	
	public void test_ZZZS() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("ZZZS");
		assertEquals(result, true);
	}
	
	public void test_111() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("111");
		assertEquals(result, false);
	}
	
	public void test_BOY() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("BOY");
		assertEquals(result, true);
	}
	
		public void test_GTY() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("GTY");
		assertEquals(result, false);
	}
		
	public void test_boy1() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("boy");
		assertEquals(result, false);
	}
	
	public void test_boy2() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("boy".toUpperCase());
		assertEquals(result, true);
	}
	
	public void test_DOg() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("DOg");
		assertEquals(result, false);
	}
	
	public void test____() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("___");
		assertEquals(result, false);
	}
	
	public void test_123() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("123");
		assertEquals(result, false);
	}
	
	public void test_apple() throws IOException {
		boolean result;
		DictionaryData dictionary_data = new DictionaryData();
		result = dictionary_data.getWordList().contains("apple");
		assertEquals(result, false);
	}
	
}
